#include<iostream>

using namespace std;

int main(){
	int * appleHeight = new int[10];
	for(int i=0;i<10;i++){
		cin>>appleHeight[i];
	}
	int personHeight = 0;
	cin>>personHeight;
	int appleCount = 0;

	personHeight += 30;

	for(int i = 0; i<10; i++)
		if(appleHeight[i]<=personHeight) appleCount++;

	cout<<appleCount<<endl;
}
